import service from '@/utils/request.js'
// 获取轮播图数据
export const getHomepageRotation = () => {
  return service({
    method: 'GET',
    url: '/homepage/block/page'
  })
}
// 获取推荐歌单
export const getRecommendedSong = () => {
  return service({
    method: 'GET',
    url: `/personalized?limit=8`
  })
}
// 获取歌单详情
export const getRecommendedSongs = (id) => {
  return service({
    method: 'GET',
    url: `/playlist/detail?id=${id}`
  })
}

// /recommend/songs  每日推荐歌曲
export const getRecommendSongs = (params) => {
  return service({
    method: 'GET',
    url: `/personalized/newsong`,
    params
  })
}

// 私人fm
export const getpersonalFm = () => {
  return service({
    method: 'GET',
    url: `/personal_fm`
  })
}

// Popular singer 热门歌手
export const getPopularsinger = () => {
  return service({
    method: 'GET',
    url: `/top/artists?offset=0&limit=5`
  })
}

// 新专辑
export const getNewAlbum = () => {
  return service({
    method: 'GET',
    url: `/album/new?area=ZH&limit=8`
  })
}

// 排行榜
export const getRankingList = () => {
  return service({
    method: 'GET',
    url: `/toplist`
  })
}
